#ifndef	ADC_H
#define ADC_H

#include "stm8l15x.h"

void ADC_Power_Init();
void ADC_Input_Init(ADC_Channel_TypeDef ADC_Channels, ADC_Group_TypeDef ADC_GroupChannels);
void ADC_Vref_Init(void);
void MeterTest(void);
void ForwardMeterValueInc(void);
void ReverseMeterValueInc(void);
int PluseSample(void);
int BackflowSensTest(void);
int ADC_SensTest(void);
int ADC_PowerTest(void);
//void SavePluseMeterValue(uint8_t *pAddr, uint8_t uiPluseRate);
void PowerTest(void);
void PosNegMeasure(uint8_t uiSensRed, uint8_t uiSensYellow, uint8_t uiClose, uint8_t uiOpen);

#endif

